﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Index : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}

	public void OnLogin()
	{
		Loading.GetInstance ().StartLoading ();

		// data
		DataManager.Init ( ()=>{

			lessonUI.GetInstance().ShowLessonList();
			Loading.GetInstance ().EndLoading ();

			gameObject.SetActive (false);
		} );

	}



}
